package com.example.a2;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class RegisterActivity extends AppCompatActivity {

    private TextView tvRegisterTitle;
    private EditText edtTextRegisterUserName;
    private EditText edtTextRegisterPassword;
    private EditText edttextRegisterPassword2;
    private EditText edttextRegisterPhone;
    private Button btnRegisterRegister;
    private Button btnRegisterExit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        initView();
        btnRegisterRegister.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        btnRegisterExit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();

            }
        });
    }

    private void initView() {
        tvRegisterTitle = (TextView) findViewById(R.id.tv_register_title);
        edtTextRegisterUserName = (EditText) findViewById(R.id.edtText_register_UserName);
        edtTextRegisterPassword = (EditText) findViewById(R.id.edtText_register_Password);
        edttextRegisterPassword2 = (EditText) findViewById(R.id.edttext_register_Password2);
        edttextRegisterPhone = (EditText) findViewById(R.id.edttext_register_phone);
        btnRegisterRegister = (Button) findViewById(R.id.btn_register_Register);
        btnRegisterExit = (Button) findViewById(R.id.btn_register_Exit);
    }
}